/*
 * @Author: cl
 * @Description:
 * @Date: 2023-04-06 14:10:43
 * @LastEditTime: 2023-04-10 10:08:14
 * @FilePath: \jsnode\nestjs\naota\src\cats\cats.controller.ts
 * @LastEditors: cl
 */
import { Controller, Get } from '@nestjs/common'
import { CatServe } from './cats.services'
import { ApiOperation, ApiTags } from '@nestjs/swagger'

@Controller('/cats')
@ApiTags('小猫')
export class CatsController {
  constructor(private readonly catServe: CatServe) {}

  @Get('/findAll')
  findAll(): string[] {
    return this.catServe.showCatList()
  }
}
